package com.aoxin.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.aoxin.model.SlfChildrenBindingPackage;
import com.aoxin.model.SlfClassroomClass;

public interface SlfChildrenBindingPackageMapper {
    int deleteByPrimaryKey(Long slfBindingChildrenId);
    
    void updateByPrimaryKeyOther(Long slfBindingChildrenId);

    int insert(SlfChildrenBindingPackage record);

    int insertSelective(SlfChildrenBindingPackage record);

    SlfChildrenBindingPackage selectByPrimaryKey(Long slfBindingChildrenId);
    /**
	 * 绑定页面查询
	 * 
	 * @param SlfChildrenBindingPackage slfChildrenBindingPackage
	 *           
	 * @return List<SlfChildrenBindingPackage>
	 */
    List<SlfChildrenBindingPackage> queryChildrenBindingPackageMapper(SlfChildrenBindingPackage slfChildrenBindingPackage);

    
    List<SlfChildrenBindingPackage> queryChildrenBindingPackageOthersMapper(SlfChildrenBindingPackage slfChildrenBindingPackage);
    
    
    List<SlfChildrenBindingPackage> queryChildrenBindingPackageOtherMapper(Map<String,Object> map);
    /**
	 * 组建班级
	 * 
	 * @param Map<String,Object> map	 
	 *            
	 * @return SUCC
	 */
    void updateOrganizationClassMapper(Map<String,Object> map);
    
    /**
	 * 编辑教室信息(主要更换绑定的教室)
	 * 
	 * @param SlfClassroomClass slfClassroomClass
	 * @return SUCC
	 */
    void updateClassMapper(SlfClassroomClass slfClassroomClass);
    
    int updateByPrimaryKeySelective(SlfChildrenBindingPackage record);

    int updateByPrimaryKey(SlfChildrenBindingPackage record);
    
    List<SlfChildrenBindingPackage> queryClassChildrenMapper(@Param("classId") Integer classId);
    
    List<String> queryClassChildrenOtherMapper(@Param("classId") Integer classId);
    
    List<SlfChildrenBindingPackage> queryChlidrenInformationMapper(@Param("phone") String phone);
}